<!-- Fixed navbar -->
<nav id="top_nav" class="navbar navbar-default navbar-static-top">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <span id="small_search" class="glyphicon glyphicon-search" aria-hidden="true"></span>
      <a class="navbar-brand" href="#">导航菜单</a>
    </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        {navigation as=$vo }
        {if isset($vo.data)}
        <li class="dropdown">
          <a href="{@to($vo)}">{$vo.name}</a>
          <a href="{@to($vo)}" id="app_menudown" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-menu-down btn-xs"></span></a>
          <ul class="dropdown-menu nav_small" role="menu">
            {foreach $vo.data as $svo }
            <li><a href="{@to($svo)}">{$svo.name}</a></li>
            {/foreach}
          </ul>
        </li>
        {else}
        <li><a href="{@to($vo)}">{$vo.name}</a></li>
        {/if}
        {/navigation}
      </ul>
    </div>
    <!--/.nav-collapse -->
  </div>
</nav>